<?php

// 本文档自动生成，仅供测试运行
class IndexAction extends BaseAction {
	/*
	  +----------------------------------------------------------
	 * 登录后台主界面显示
	  +----------------------------------------------------------
	 */

	public function index() {
		$Action = D('Action');
		$action = $Action->order('login_time desc')->select();
		$this->assign('action',$action);
		$this->display();
	}
	
	public function showAction(){
		//显示操作明细
		
		$action_id = $_GET['action_id'];
		$action = D('Action')->find($action_id);
		$this->assign("action",$action);
		$this->assign("select", "showAction");
		$this->display("index");
	}
	/**
	  +----------------------------------------------------------
	 * 探针模式
	  +----------------------------------------------------------
	 */
	public function checkEnv() {
		load('pointer', THINK_PATH . '/Tpl/Autoindex'); //载入探针函数
		$env_table = check_env(); //根据当前函数获取当前环境
		echo $env_table;
	}

}

?>